package com.xjc.market.acct.service;

import java.util.List;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import com.xjc.infra.base.BaseService;
import com.xjc.infra.entity.SessionContext;
import com.xjc.market.acct.biz.AcRoleBiz;
import com.xjc.market.acct.entity.table.AcRole;

/**
 * 角色-service
 * @author liangcz
 * @Date   2017年9月21日 下午2:31:30
 * @version 1.0
 */
@RestController
@RequestMapping("/acct/service/AcRoleService")
public class AcRoleService extends BaseService{
	@Autowired
	AcRoleBiz acRoleBiz;
	/**
	 * 获取角色(非超级管理员)
	 * @author liangcz
	 * @date   2017年9月21日 下午2:34:28
	 * @return void
	 */
	@RequestMapping("/getRole")
	@ResponseBody
	public List<AcRole> getRole(SessionContext sessionContext,HttpServletRequest request, HttpServletResponse response){
		List<AcRole> list = acRoleBiz.getRole();
		return list;
	}
}
